package com.ningxia.water.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * hz
 */
@Data
@JsonIgnoreProperties(value = { "handler" })
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Api表")
public class SysBackendApiTable implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "backend_api_id", type = IdType.AUTO)
    @ApiModelProperty("api的主键ID")
    private Integer backendApiId;

    @ApiModelProperty("api名称")
    private String backendApiName;

    @ApiModelProperty("api的父ID")
    private Integer pid;

    @ApiModelProperty("api的访问路径")
    private String backendApiUrl;

    @ApiModelProperty("api的访问使用的方法")
    private String backendApiMethod;

    @ApiModelProperty("api的排序编码")
    private Integer backendApiSort;

    @ApiModelProperty("api的描述")
    private String description;

    public SysBackendApiTable() {
    }

    public SysBackendApiTable(Integer backendApiId, String backendApiName, Integer pid, String backendApiUrl, String backendApiMethod, Integer backendApiSort, String description) {
        this.backendApiId = backendApiId;
        this.backendApiName = backendApiName;
        this.pid = pid;
        this.backendApiUrl = backendApiUrl;
        this.backendApiMethod = backendApiMethod;
        this.backendApiSort = backendApiSort;
        this.description = description;
    }


}
